

<script setup>
	import { computed } from 'vue'
	import { store } from '@/uni_modules/uni-id-pages/common/store.js'
	
	const info = computed(() => {
		return store.userInfo
	})
	
	const changeAdd = () => {
		if(!info.value?._id) return uni.navigateTo({url:'/uni_modules/uni-id-pages/pages/login/login-withoutpwd'})
		uni.navigateTo({
			url:'/pages/photo/add'
		})
	}
</script>

<template>
	<view class="add flex" @click="changeAdd"> + </view>
</template>

<style lang="scss" scoped>
	.add{
		position: fixed;
		right: 10rpx;
		bottom: 20%;
		width: 80rpx;
		height: 80rpx;
		border-radius: 50%;
		background: #000;
		color: #fff;
		font-size: 60rpx;
		line-height: 0;
	}
</style>